import { queryTestSheet } from '../services/api';

export default {
  namespace: 'testsheet',

  state: {
    projStatusSheet: [],
  },

  effects: {
    *fetchTestSheet(_, { call, put }) {
      const reponse = yield call(queryTestSheet);
      yield put({
        type: 'show',
        payload: reponse,
      });
    },
  },

  reducers: {
    show(state, { payload }) {
      return {
        ...state,
        ...payload,
      };
    },
  },
};
